#ifndef _TRIGGERANALYZER_H
#define _TRIGGERANALYZER_H

#include <iostream>
#include <vector>
#include <list>
#include <string>

#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>

#include "GeomSvc.h"
#include "TriggerRoad.h"

class TriggerAnalyzer
{
public:
  //initialization
  void init(std::string fileName);

  //Accept a event
  bool acceptEvent(TriggerRoad& p_road, TriggerRoad& m_road);

  //Get the road list of +/-
  std::list<TriggerRoad>& getRoadList(int charge) { return roads[(charge+1)/2]; }

private:
  //Single muon roads
  std::list<TriggerRoad> roads[2];
};

#endif
